package scjp.preparation.exam;

public class AssertionCheck {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Base base = new Derived();
			base.foo();
		} catch (Exception e) {
			System.out.println(" am here");
			Base base = new Derived();
			base.foo();
		}
		finally {
			System.out.println(" am here1 ");
		}
	}

}

class Base {
	public void foo() {
		assert true; // ASSERT_BASE
	}
}

class Derived extends Base {
	public void foo() {
		assert false; // ASSERT_DERIVED
	}
}